#!/bin/bash

# postinst script for service-fault-management
#
# see: dh_installdeb(1)

#set -e

# summary of how this script can be called:
#        * <postinst> \`configure' <most-recently-configured-version>
#        * <old-postinst> \`abort-upgrade' <new version>
#        * <conflictor's-postinst> \`abort-remove' \`in-favour' <package>
#          <new-version>
#        * <postinst> \`abort-remove'
#        * <deconfigured's-postinst> \`abort-deconfigure' \`in-favour'
#          <failed-install-package> <version> \`removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package

PATH=/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH

if [ "${BASEDIR:=/}" = "/" ]; then
    BASEDIR=""
else
    BASEDIR_OPT="-b $BASEDIR"
fi

case "$1" in
    configure)
        chown root:bin $BASEDIR/etc/net-snmp
	chown root:bin $BASEDIR/etc/net-snmp/snmp
	chown root:bin $BASEDIR/etc/net-snmp/snmp/mibs
	chown root:bin $BASEDIR/usr/lib/fm
	chown root:bin $BASEDIR/usr/lib/fm/amd64
	chown root:bin $BASEDIR/usr/lib/fm/dict
	chown root:bin $BASEDIR/usr/lib/fm/eft
	chown root:bin $BASEDIR/usr/lib/fm/fmd
	chown root:bin $BASEDIR/usr/lib/fm/fmd/plugins
	chown root:bin $BASEDIR/usr/lib/fm/fmd/schemes
	chown root:bin $BASEDIR/usr/lib/fm/fmd/schemes/amd64
	chown root:bin $BASEDIR/usr/lib/fm/notify
	chown root:bin $BASEDIR/usr/lib/fm/topo
	chown root:bin $BASEDIR/usr/lib/fm/topo/maps
	chown root:bin $BASEDIR/usr/lib/fm/topo/plugins
	chown root:bin $BASEDIR/usr/platform/i86pc/lib
	chown root:bin $BASEDIR/usr/platform/i86pc/lib/fm
	chown root:bin $BASEDIR/usr/platform/i86pc/lib/fm/eft
	chown root:bin $BASEDIR/usr/platform/i86pc/lib/fm/topo
	chown root:bin $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps
	chown root:bin $BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins
	chown root:sys $BASEDIR/etc/fm
	chown root:sys $BASEDIR/etc/fm/fmd
	chown root:sys $BASEDIR/usr/lib/mdb
	chown root:sys $BASEDIR/usr/lib/mdb/proc
	chown root:sys $BASEDIR/usr/platform/i86pc
	chown root:sys $BASEDIR/var/fm
	chown root:sys $BASEDIR/var/fm/fmd
	chown root:sys $BASEDIR/var/fm/fmd/ckpt
	chown root:sys $BASEDIR/var/fm/fmd/rsrc
	chown root:sys $BASEDIR/var/fm/fmd/xprt
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/AMD.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/AMD.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/DISK.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/DISK.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/FMD.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/FMD.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/FMNOTIFY.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/FMNOTIFY.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/GMCA.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/GMCA.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/INTEL.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/INTEL.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/NIC.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/NIC.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/NXGE.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/NXGE.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/PCI.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/PCI.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/PCIEX.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/PCIEX.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/SENSOR.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/SENSOR.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/SMF.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/SMF.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/STORAGE.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/STORAGE.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/SUNOS.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/SUNOS.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/dict/ZFS.dict"
	chown root:bin "$BASEDIR/usr/lib/fm/dict/ZFS.dict"
	chmod 0444 "$BASEDIR/usr/lib/fm/eft/disk.eft"
	chown root:bin "$BASEDIR/usr/lib/fm/eft/disk.eft"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/eft/neptune_xaui.eft ] && rm -f $BASEDIR/usr/lib/fm/eft/neptune_xaui.eft
	else
	    chmod 0444 "$BASEDIR/usr/lib/fm/eft/neptune_xaui.eft"
	    chown root:bin "$BASEDIR/usr/lib/fm/eft/neptune_xaui.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/eft/neptune_xfp.eft ] && rm -f $BASEDIR/usr/lib/fm/eft/neptune_xfp.eft
	else
	    chmod 0444 "$BASEDIR/usr/lib/fm/eft/neptune_xfp.eft"
	    chown root:bin "$BASEDIR/usr/lib/fm/eft/neptune_xfp.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/eft/nic.eft ] && rm -f $BASEDIR/usr/lib/fm/eft/nic.eft
	else
	    chmod 0444 "$BASEDIR/usr/lib/fm/eft/nic.eft"
	    chown root:bin "$BASEDIR/usr/lib/fm/eft/nic.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/eft/pci.eft ] && rm -f $BASEDIR/usr/lib/fm/eft/pci.eft
	else
	    chmod 0444 "$BASEDIR/usr/lib/fm/eft/pci.eft"
	    chown root:bin "$BASEDIR/usr/lib/fm/eft/pci.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/eft/pciex.eft ] && rm -f $BASEDIR/usr/lib/fm/eft/pciex.eft
	else
	    chmod 0444 "$BASEDIR/usr/lib/fm/eft/pciex.eft"
	    chown root:bin "$BASEDIR/usr/lib/fm/eft/pciex.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/eft/pciexrc.eft ] && rm -f $BASEDIR/usr/lib/fm/eft/pciexrc.eft
	else
	    chmod 0444 "$BASEDIR/usr/lib/fm/eft/pciexrc.eft"
	    chown root:bin "$BASEDIR/usr/lib/fm/eft/pciexrc.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/eft/sensor.eft ] && rm -f $BASEDIR/usr/lib/fm/eft/sensor.eft
	else
	    chmod 0444 "$BASEDIR/usr/lib/fm/eft/sensor.eft"
	    chown root:bin "$BASEDIR/usr/lib/fm/eft/sensor.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/eft/storage.eft ] && rm -f $BASEDIR/usr/lib/fm/eft/storage.eft
	else
	    chmod 0444 "$BASEDIR/usr/lib/fm/eft/storage.eft"
	    chown root:bin "$BASEDIR/usr/lib/fm/eft/storage.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/topo/maps/xfp-hc-topology.xml ] && rm -f $BASEDIR/usr/lib/fm/topo/maps/xfp-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/lib/fm/topo/maps/xfp-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/lib/fm/topo/maps/xfp-hc-topology.xml"
	fi
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/AMD.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/AMD.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/DISK.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/DISK.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/FMD.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/FMD.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/FMNOTIFY.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/FMNOTIFY.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/GMCA.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/GMCA.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/INTEL.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/INTEL.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/NIC.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/NIC.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/NXGE.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/NXGE.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/PCI.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/PCI.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/PCIEX.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/PCIEX.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/SENSOR.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/SENSOR.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/SMF.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/SMF.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/STORAGE.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/STORAGE.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/SUNOS.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/SUNOS.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/ZFS.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/C/LC_MESSAGES/ZFS.mo"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/eft/amd64.eft ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/eft/amd64.eft
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/eft/amd64.eft"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/eft/amd64.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/eft/gcpu.eft ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/eft/gcpu.eft
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/eft/gcpu.eft"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/eft/gcpu.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/eft/gcpu_amd.eft ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/eft/gcpu_amd.eft
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/eft/gcpu_amd.eft"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/eft/gcpu_amd.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/eft/intel.eft ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/eft/intel.eft
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/eft/intel.eft"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/eft/intel.eft"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-1101-disk-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-1101-disk-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-1101-disk-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-1101-disk-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-3301-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-3301-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-3301-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-3301-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-330x-chassis-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-330x-chassis-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-330x-chassis-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-330x-chassis-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-330x-fan-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-330x-fan-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-330x-fan-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-330x-fan-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-chassis-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-chassis-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-chassis-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-chassis-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-slot-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-slot-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-slot-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Storage-Platform-7001-slot-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Netra-X4200-M2-disk-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Netra-X4200-M2-disk-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Netra-X4200-M2-disk-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Netra-X4200-M2-disk-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Netra-X4200-M2-disk-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Netra-X4200-M2-disk-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Netra-X4200-M2-disk-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Netra-X4200-M2-disk-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-chassis-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-chassis-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-chassis-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-chassis-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-disk-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-disk-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-disk-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-disk-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-slot-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-slot-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-slot-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-slot-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-usb.usbtopo ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-usb.usbtopo
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-usb.usbtopo"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2028R-ACR24L-usb.usbtopo"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-chassis-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-chassis-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-chassis-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-chassis-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-disk-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-disk-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-disk-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-disk-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-slot-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-slot-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-slot-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-slot-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-usb.usbtopo ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-usb.usbtopo
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-usb.usbtopo"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-2029P-ACR24L-usb.usbtopo"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-chassis-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-chassis-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-chassis-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-chassis-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-slot-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-slot-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-slot-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-slot-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-usb.usbtopo ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-usb.usbtopo
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-usb.usbtopo"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SSG-6049P-E1CR36L-usb.usbtopo"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-chassis-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-chassis-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-chassis-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-chassis-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-usb.usbtopo ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-usb.usbtopo
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-usb.usbtopo"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/SYS-2028U-E1CNRT+-usb.usbtopo"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4200-M2-disk-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4200-M2-disk-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4200-M2-disk-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4200-M2-disk-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4200-Server-disk-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4200-Server-disk-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4200-Server-disk-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4200-Server-disk-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4500-disk-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4500-disk-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4500-disk-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4500-disk-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4540-disk-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4540-disk-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4540-disk-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4540-disk-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4600-M2-disk-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4600-M2-disk-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4600-M2-disk-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4600-M2-disk-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/chassis-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/chassis-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/chassis-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/chassis-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/chip-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/chip-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/chip-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/chip-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/fan-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/fan-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/fan-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/fan-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/i86pc-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/i86pc-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/i86pc-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/i86pc-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/i86pc-legacy-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/i86pc-legacy-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/i86pc-legacy-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/i86pc-legacy-hc-topology.xml"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/psu-hc-topology.xml ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/psu-hc-topology.xml
	else
	    chmod 0444 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/psu-hc-topology.xml"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/psu-hc-topology.xml"
	fi
	chmod 0444 "$BASEDIR/usr/share/lib/xml/dtd/digraph-topology.dtd.1"
	chown root:bin "$BASEDIR/usr/share/lib/xml/dtd/digraph-topology.dtd.1"
	chmod 0444 "$BASEDIR/usr/share/lib/xml/dtd/topology.dtd.1"
	chown root:bin "$BASEDIR/usr/share/lib/xml/dtd/topology.dtd.1"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/fmd"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/fmd"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/fminject"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/fminject"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/fmsim"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/fmsim"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/fmtopo"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/fmtopo"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/ipmitopo ] && rm -f $BASEDIR/usr/lib/fm/fmd/ipmitopo
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/ipmitopo"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/ipmitopo"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/mcdecode ] && rm -f $BASEDIR/usr/lib/fm/fmd/mcdecode
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/mcdecode"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/mcdecode"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/cpumem-retire.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/cpumem-retire.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/cpumem-retire.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/cpumem-retire.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-lights.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-lights.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/disk-lights.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/disk-lights.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-monitor.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-monitor.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/disk-monitor.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/disk-monitor.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-sense-de.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-sense-de.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/disk-sense-de.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/disk-sense-de.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-transport.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-transport.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/disk-transport.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/disk-transport.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/eft.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/eft.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/eft.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/eft.so"
	fi
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/ext-event-transport.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/ext-event-transport.so"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/fabric-xlate.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/fabric-xlate.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/fabric-xlate.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/fabric-xlate.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/fdd-msg.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/fdd-msg.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/fdd-msg.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/fdd-msg.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/io-retire.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/io-retire.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/io-retire.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/io-retire.so"
	fi
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/ip-transport.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/ip-transport.so"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/sensor-transport.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/sensor-transport.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/sensor-transport.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/sensor-transport.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/ses-log-transport.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/ses-log-transport.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/ses-log-transport.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/ses-log-transport.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/slow-io-de.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/slow-io-de.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/slow-io-de.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/slow-io-de.so"
	fi
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/software-diagnosis.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/software-diagnosis.so"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/software-response.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/software-response.so"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/sp-monitor.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/sp-monitor.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/sp-monitor.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/sp-monitor.so"
	fi
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/syslog-msgs.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/syslog-msgs.so"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/zfs-diagnosis.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/zfs-diagnosis.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/zfs-diagnosis.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/zfs-diagnosis.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/zfs-retire.so ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/zfs-retire.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/fmd/plugins/zfs-retire.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/zfs-retire.so"
	fi
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/cpu.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/cpu.so"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/dev.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/dev.so"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/fmd.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/fmd.so"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/hc.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/hc.so"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/legacy-hc.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/legacy-hc.so"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/mem.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/mem.so"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/mod.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/mod.so"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/pkg.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/pkg.so"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/svc.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/svc.so"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/sw.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/sw.so"
	chmod 0555 "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/zfs.so"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/schemes/amd64/zfs.so"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/topo/plugins/disk.so ] && rm -f $BASEDIR/usr/lib/fm/topo/plugins/disk.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/topo/plugins/disk.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/topo/plugins/disk.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/topo/plugins/fac_prov_ahci.so ] && rm -f $BASEDIR/usr/lib/fm/topo/plugins/fac_prov_ahci.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/topo/plugins/fac_prov_ahci.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/topo/plugins/fac_prov_ahci.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/topo/plugins/fac_prov_ipmi.so ] && rm -f $BASEDIR/usr/lib/fm/topo/plugins/fac_prov_ipmi.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/topo/plugins/fac_prov_ipmi.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/topo/plugins/fac_prov_ipmi.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/topo/plugins/fac_prov_mptsas.so ] && rm -f $BASEDIR/usr/lib/fm/topo/plugins/fac_prov_mptsas.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/topo/plugins/fac_prov_mptsas.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/topo/plugins/fac_prov_mptsas.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/topo/plugins/ipmi.so ] && rm -f $BASEDIR/usr/lib/fm/topo/plugins/ipmi.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/topo/plugins/ipmi.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/topo/plugins/ipmi.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/topo/plugins/nic.so ] && rm -f $BASEDIR/usr/lib/fm/topo/plugins/nic.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/topo/plugins/nic.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/topo/plugins/nic.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/topo/plugins/ses.so ] && rm -f $BASEDIR/usr/lib/fm/topo/plugins/ses.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/topo/plugins/ses.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/topo/plugins/ses.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/topo/plugins/smbios.so ] && rm -f $BASEDIR/usr/lib/fm/topo/plugins/smbios.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/topo/plugins/smbios.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/topo/plugins/smbios.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/topo/plugins/usb.so ] && rm -f $BASEDIR/usr/lib/fm/topo/plugins/usb.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/topo/plugins/usb.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/topo/plugins/usb.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/topo/plugins/xfp.so ] && rm -f $BASEDIR/usr/lib/fm/topo/plugins/xfp.so
	else
	    chmod 0555 "$BASEDIR/usr/lib/fm/topo/plugins/xfp.so"
	    chown root:bin "$BASEDIR/usr/lib/fm/topo/plugins/xfp.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/chip.so ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/chip.so
	else
	    chmod 0555 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/chip.so"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/chip.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/chipset.so ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/chipset.so
	else
	    chmod 0555 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/chipset.so"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/chipset.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/hostbridge.so ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/hostbridge.so
	else
	    chmod 0555 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/hostbridge.so"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/hostbridge.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/pcibus.so ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/pcibus.so
	else
	    chmod 0555 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/pcibus.so"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/pcibus.so"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/x86pi.so ] && rm -f $BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/x86pi.so
	else
	    chmod 0555 "$BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/x86pi.so"
	    chown root:bin "$BASEDIR/usr/platform/i86pc/lib/fm/topo/plugins/x86pi.so"
	fi
	chmod 0555 "$BASEDIR/usr/sbin/fmadm"
	chown root:bin "$BASEDIR/usr/sbin/fmadm"
	chmod 0555 "$BASEDIR/usr/sbin/fmdump"
	chown root:bin "$BASEDIR/usr/sbin/fmdump"
	chmod 0555 "$BASEDIR/usr/sbin/fmstat"
	chown root:bin "$BASEDIR/usr/sbin/fmstat"
	chmod 0644 "$BASEDIR/etc/net-snmp/snmp/mibs/SUN-FM-MIB.mib"
	chown root:bin "$BASEDIR/etc/net-snmp/snmp/mibs/SUN-FM-MIB.mib"
	chmod 0644 "$BASEDIR/etc/net-snmp/snmp/mibs/SUN-IREPORT-MIB.mib"
	chown root:bin "$BASEDIR/etc/net-snmp/snmp/mibs/SUN-IREPORT-MIB.mib"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/cpumem-retire.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/cpumem-retire.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/cpumem-retire.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/cpumem-retire.conf"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-lights.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-lights.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/disk-lights.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/disk-lights.conf"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-monitor.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-monitor.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/disk-monitor.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/disk-monitor.conf"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-sense-de.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-sense-de.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/disk-sense-de.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/disk-sense-de.conf"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-transport.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/disk-transport.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/disk-transport.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/disk-transport.conf"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/eft.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/eft.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/eft.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/eft.conf"
	fi
	chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/ext-event-transport.conf"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/ext-event-transport.conf"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/fabric-xlate.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/fabric-xlate.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/fabric-xlate.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/fabric-xlate.conf"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/fdd-msg.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/fdd-msg.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/fdd-msg.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/fdd-msg.conf"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/io-retire.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/io-retire.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/io-retire.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/io-retire.conf"
	fi
	chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/ip-transport.conf"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/ip-transport.conf"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/sensor-transport.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/sensor-transport.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/sensor-transport.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/sensor-transport.conf"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/ses-log-transport.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/ses-log-transport.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/ses-log-transport.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/ses-log-transport.conf"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/slow-io-de.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/slow-io-de.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/slow-io-de.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/slow-io-de.conf"
	fi
	chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/software-diagnosis.conf"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/software-diagnosis.conf"
	chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/software-response.conf"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/software-response.conf"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/sp-monitor.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/sp-monitor.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/sp-monitor.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/sp-monitor.conf"
	fi
	chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/syslog-msgs.conf"
	chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/syslog-msgs.conf"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/zfs-diagnosis.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/zfs-diagnosis.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/zfs-diagnosis.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/zfs-diagnosis.conf"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/usr/lib/fm/fmd/plugins/zfs-retire.conf ] && rm -f $BASEDIR/usr/lib/fm/fmd/plugins/zfs-retire.conf
	else
	    chmod 0644 "$BASEDIR/usr/lib/fm/fmd/plugins/zfs-retire.conf"
	    chown root:bin "$BASEDIR/usr/lib/fm/fmd/plugins/zfs-retire.conf"
	fi
	chmod 0555 "$BASEDIR/usr/lib/mdb/proc/amd64/eft.so"
	chown root:sys "$BASEDIR/usr/lib/mdb/proc/amd64/eft.so"
	chmod 0555 "$BASEDIR/usr/lib/mdb/proc/amd64/fmd.so"
	chown root:sys "$BASEDIR/usr/lib/mdb/proc/amd64/fmd.so"
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/kernel/drv/fm.conf ] && rm -f $BASEDIR/kernel/drv/fm.conf
	else
	    chmod 0644 "$BASEDIR/kernel/drv/fm.conf"
	    chown root:sys "$BASEDIR/kernel/drv/fm.conf"
	fi
	if [ "$ZONEINST" = "1" ]; then
	    [ -f $BASEDIR/kernel/drv/amd64/fm ] && rm -f $BASEDIR/kernel/drv/amd64/fm
	else
	    chmod 0755 "$BASEDIR/kernel/drv/amd64/fm"
	    chown root:sys "$BASEDIR/kernel/drv/amd64/fm"
	fi
	[ "$ZONEINST" = "1" ] || (grep -c "^fm " $BASEDIR/etc/name_to_major >/dev/null || ( add_drv -n  $BASEDIR_OPT  -m '* 0644 root sys' fm ) )
	
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/lib/fm/fmd/schemes && ln -f -s amd64/cpu.so $BASEDIR/usr/lib/fm/fmd/schemes/cpu.so)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/lib/fm/fmd/schemes && ln -f -s amd64/dev.so $BASEDIR/usr/lib/fm/fmd/schemes/dev.so)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/lib/fm/fmd/schemes && ln -f -s amd64/fmd.so $BASEDIR/usr/lib/fm/fmd/schemes/fmd.so)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/lib/fm/fmd/schemes && ln -f -s amd64/hc.so $BASEDIR/usr/lib/fm/fmd/schemes/hc.so)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/lib/fm/fmd/schemes && ln -f -s amd64/legacy-hc.so $BASEDIR/usr/lib/fm/fmd/schemes/legacy-hc.so)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/lib/fm/fmd/schemes && ln -f -s amd64/mem.so $BASEDIR/usr/lib/fm/fmd/schemes/mem.so)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/lib/fm/fmd/schemes && ln -f -s amd64/mod.so $BASEDIR/usr/lib/fm/fmd/schemes/mod.so)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/lib/fm/fmd/schemes && ln -f -s amd64/pkg.so $BASEDIR/usr/lib/fm/fmd/schemes/pkg.so)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/lib/fm/fmd/schemes && ln -f -s amd64/svc.so $BASEDIR/usr/lib/fm/fmd/schemes/svc.so)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/lib/fm/fmd/schemes && ln -f -s amd64/sw.so $BASEDIR/usr/lib/fm/fmd/schemes/sw.so)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/lib/fm/fmd/schemes && ln -f -s amd64/zfs.so $BASEDIR/usr/lib/fm/fmd/schemes/zfs.so)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps && ln -f -s ./SSG-2028R-ACR24L-hc-topology.xml $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-3101-hc-topology.xml)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps && ln -f -s SSG-2028R-ACR24L-usb.usbtopo $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-3101-usb.usbtopo)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps && ln -f -s ./SSG-2028R-ACR24L-hc-topology.xml $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-3102-hc-topology.xml)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps && ln -f -s SSG-2028R-ACR24L-usb.usbtopo $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-3102-usb.usbtopo)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps && ln -f -s SSG-2028R-ACR24L-usb.usbtopo $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-3102-usb.usbtopo)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps && ln -f -s ./Joyent-Compute-Platform-3301-hc-topology.xml $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-Compute-Platform-3302-hc-topology.xml)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps && ln -f -s SSG-2029P-ACR24L-hc-topology.xml $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-M12G5-hc-topology.xml)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps && ln -f -s SSG-2029P-ACR24L-usb.usbtopo $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-M12G5-usb.usbtopo)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps && ln -f -s SSG-6049P-E1CR36L-hc-topology.xml $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-S10G5-hc-topology.xml)
	# [ "$ZONEINST" = "1" ] || (mkdir -p $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps && ln -f -s SSG-6049P-E1CR36L-usb.usbtopo $BASEDIR/usr/platform/i86pc/lib/fm/topo/maps/Joyent-S10G5-usb.usbtopo)
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument '$1'" >&2
        exit 1
    ;;
esac



# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0

